package com.dzsw.javabase.collection;

import java.util.ArrayList;
import java.util.List;

public class ListLimitSample {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add("str_" + i);
        }
        System.out.println(list.get(20));
    }
}
